def goodsImagePath(instance,filename):
    ext = filename.split(".").pop()
    path = "static/goodsimages/"+"{0}.{1}".format(instance._id,ext)
    return path 